From 1eed1e3794a05540235c7d3db7338b23c378fae2 Mon Sep 17 00:00:00 2001 From: Max Semenik Date: Wed, 6 Jan 2010 18:52:19 +0000 Subject: [PATCH] Fixed insane selectField() usage from r58322 --- includes/search/SearchSqlite.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/includes/search/SearchSqlite.php b/includes/search/SearchSqlite.php index b1cf6a6889..96580caff3 100644 --- a/includes/search/SearchSqlite.php +++ b/includes/search/SearchSqlite.php @@ -45,8 +45,11 @@ class SearchSqlite extends SearchEngine { */ function fulltextSearchSupported() { if ( self::$fulltextSupported === null ) { - $res = $this->db->selectField( 'updatelog', 'ul_key', array( 'ul_key' => 'fts3' ), __METHOD__ ); - self::$fulltextSupported = $res && $this->db->numRows( $res ) > 0; + self::$fulltextSupported = $this->db->selectField( + 'updatelog', + 'ul_key', + array( 'ul_key' => 'fts3' ), + __METHOD__ ) !== FALSE; } return self::$fulltextSupported; } -- 2.20.1